<!--<div class="form">-->
<?php
/** @var NiniosCartaNutricionalController $this */
/** @var NiniosCartaNutricional $model */
/** @var AweActiveForm $form */
$form = $this->beginWidget('ext.AweCrud.components.AweActiveForm', array(
    'id' => 'ninios-carta-nutricional-form',
    'enableAjaxValidation' => false,
    'action' => Yii::app()->baseUrl . "/index.php/ninio/niniosCartaNutricional/update/id/" . $_GET['id'],
    'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => false,),
    'enableClientValidation' => true,
        ));
?>
<div class="row-fluid sortable span9">
    <div class="box">
        <div class="box-header well" data-original-title>
            <h2>
<!--                <i class="icon-list"></i> -->
                Agregar observación
            </h2>
            <div class="box-icon">
                <a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i> </a> 
            </div>
        </div>

        <div class="box-content">
    <!--<p class="note">-->
<!--        <?php // echo Yii::t('AweCrud.app', 'Fields with')  ?> <span class="required">*</span>-->
<!--        <?php // echo Yii::t('AweCrud.app', 'are required')  ?>.    </p>-->

            <?php echo $form->errorSummary($model) ?>

            <?php // echo $form->dropDownListRow($model, 'ninios_id', array('' => ' -- Seleccione -- ') + CHtml::listData(Ninios::model()->findAll(), 'id', Ninios::representingColumn())) ?>
            <?php // echo $form->dropDownListRow($model, 'carta_nutricional_id', array('' => ' -- Seleccione -- ') + CHtml::listData(CartaNutricional::model()->findAll(), 'id', CartaNutricional::representingColumn())) ?>
            <?php // echo $form->textFieldRow($model, 'fecha') ?>
            <div class="row-fluid">
                <div class="span5">
                    <?php
                    $this->widget('bootstrap.widgets.TbDetailView', array(
                        'data' => $model,
                        'attributes' => array(
                            'id',
                            array(
                                'name' => 'ninios_id',
                                'value' => ($model->ninios !== null) ? CHtml::link($model->ninios, array('/ninios/view', 'id' => $model->ninios->id)) . ' ' : null,
                                'type' => 'html',
                            ),
                            array(
                                'name' => 'carta_nutricional_id',
                                'value' => ($model->cartaNutricional !== null) ? CHtml::link($model->cartaNutricional, array('/cartaNutricional/view', 'id' => $model->cartaNutricional->id)) . ' ' : null,
                                'type' => 'html',
                            ),
                            'fecha',
//                'observaciones',
                        ),
                    ));
                    ?>
                </div>
                <div class="span5">
                </div>
            </div>
            <?php echo $form->textFieldRow($model, 'observaciones', array('maxlength' => 100)) ?>
            <div class="form-actions">
                <?php
                $this->widget('bootstrap.widgets.TbButton', array(
                    'buttonType' => 'submit',
                    'type' => 'primary',
                    'label' => $model->isNewRecord ? Yii::t('AweCrud.app', 'Create') : Yii::t('AweCrud.app', 'Save'),
                ));
                ?>
                <?php
                $this->widget('bootstrap.widgets.TbButton', array(
                    //'buttonType'=>'submit',
//            'url'=> Yii::app()->createAbsoluteUrl('admin'),
                    'label' => Yii::t('AweCrud.app', 'Cancel'),
                    'htmlOptions' => array('onclick' => 'javascript:history.go(-1)')
                ));
                ?>
            </div>

            <?php $this->endWidget(); ?>
        </div>
    </div>
</div>
<!--</div>-->